//
//  UIButton+CustomTitle.h
//  Client
//
//  Created by qq on 2018/7/6.
//  Copyright © 2018年 qq. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ButtonCustomizeOption:NSObject

@property(assign, nonatomic) CGFloat cornerRadius;          // 按钮圆角
@property (assign, nonatomic) CGColorRef shadowColor;       // 阴影颜色
@property(assign, nonatomic) CGFloat shadowRadius;          // 阴影半径
@property(assign, nonatomic) CGSize shadowOffset;           // 阴影偏移
@property(assign, nonatomic) CGFloat shadowOpacity;         // 阴影透明度
@property(assign, nonatomic) CGColorRef backgroundColor;    // 按钮背景色


@end

@interface UIButton (Customize)

// 根据 option 参数对按钮设置圆角、阴影及背景色
-(void)customize:(ButtonCustomizeOption*)option;
+(UIButton*)customButton:(NSString *)title font:(UIFont*)font titleColor:(UIColor*)color edgeInsets:(UIEdgeInsets)insets;
@end
